package com.sntra.beibi.dao;

import com.sntra.beibi.domain.LearnBook;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LearnBookMapper {
	
	LearnBook selectLearnBook(@Param("bookId")  int bookId , @Param("learnerId")  int learnerId);
	
    int deleteByPrimaryKey(Integer id);

    int insert(LearnBook record);

    int insertSelective(LearnBook record);

    LearnBook selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LearnBook record);

    int updateByPrimaryKeyWithBLOBs(LearnBook record);

    int updateByPrimaryKey(LearnBook record);

    int updateLearnBookMsg(LearnBook record);

    int updateLearnBookImg(LearnBook record);

    int deleteLearnBook(Integer id);

    List<LearnBook> allLearnBook();

    List<LearnBook> likeTitle(String title);

    List<LearnBook> likeStyle(String style);

    List<LearnBook> bookOfTitle(String title);
}
